//
//  LameAudioConvert.h
//  AudioConvertOC
//
//  Created by xyanl on 2025/4/26.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LameAudioConvert : NSObject

/// 音频格式转换 m4a 转成 mp3
/// 采样率: 8000.0，通道数: 1
/// - Parameters:
///   - m4aPath: m4a 文件的路径
///   - mp3Path: 转成 mp3 的保存路径
+ (void)convertM4aToMp3:(NSString *)m4aPath mp3Path:(NSString *)mp3Path completion:(void (^)(BOOL success))completion;

/// 音频格式转换 caf/pcm 转成 mp3
/// 采样率: 11025.0，通道数: 2
/// - Parameters:
///   - pcmPath: pcm 文件的路径
///   - mp3Path: 转成 mp3 的保存路径
+ (void)convertPcmToMp3:(NSString *)pcmPath mp3Path:(NSString *)mp3Path completion:(void (^)(BOOL success))completion;

@end

NS_ASSUME_NONNULL_END
